<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>


<% 
  
    // 接收用户数据
    request.setCharacterEncoding("utf-8");
 
    String admin_pwd = request.getParameter("admin_pwd");
    String restaurant_id = request.getParameter("restaurant_id");
   
   
    String btn = request.getParameter("btn");
    String sql = "";
    //insert
    sql = "UPDATE shoppingcar SET admin_pwd ="+ admin_pwd +" where restaurant_id=" + restaurant_id;


     
    int ret = aa.db.DBTools.update(sql);
    System.out.println("ret=" + ret);
    //返回到页面
    response.sendRedirect("qiantaiindex.jsp");
    
    

  %>

</body>
</html>